<template>
	<!-- 咨询详情 -->
	<view class="page">
		<image class="head_img" v-if="detail.mainImg" :src="vuex_imgUrl+detail.mainImg" />
		<view class="top">
			<view class="title">
				{{detail.title}}
			</view>
		</view>
		<view class="parse">
			<u-parse :content="detail.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		name: "infoDetails",
		data() {
			return {
				detail: {
					title: '',
					mainImg: '',
					content: '',
				},
			};
		},
		onLoad() {
			this.detail = uni.getStorageSync('infoDetail')
		},
		onShow() {},
		methods: {}
	};
</script>

<style lang="scss" scoped>
	.head_img {
		width: 750rpx;
		height: 563rpx;
	}

	.top {
		padding: 28rpx 32rpx;
		box-sizing: border-box;

		.title {
			font-weight: bold;
			font-size: 32rpx;
			color: #1A1A1A;
		}

		.look {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 18rpx;

			.look_num {
				display: flex;
				align-items: center;
				gap: 10rpx;
				font-weight: 400;
				font-size: 24rpx;
				color: #999999;
			}

			.star_img {
				width: 40rpx;
				height: 38rpx;

				.star {
					width: 40rpx;
					height: 38rpx;
				}
			}


		}

	}

	.tabs {
		border-top: 1rpx solid #E6E6E6;
		border-bottom: 1rpx solid #E6E6E6;
		display: flex;
		padding-top: 28rpx;

		.tab_item {
			flex: 1;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 22rpx;
			font-size: 28rpx;
			color: #666666;


			.tab_line {
				width: 56rpx;
				height: 8rpx;
			}
		}

		.tab_item_a {
			font-weight: bold;
			font-size: 28rpx;
			color: #1A1A1A;

			.tab_line {
				background: #EF4630;
			}
		}

		.division {
			width: 1rpx;
			height: 32rpx;
			background: #B3B3B3;
		}
	}

	.parse {
		padding: 28rpx 32rpx;
		box-sizing: border-box;
	}

	.list {
		padding: 0 32rpx;
		box-sizing: border-box;

		.list_item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 20rpx;
			padding: 24rpx 0;
			border-bottom: 1rpx solid #E6E6E6;

			.left {
				display: flex;
				align-items: center;
				gap: 16rpx;

				.icon {
					width: 36rpx;
					height: 40rpx;
				}

				.name {
					flex: 1;
					font-size: 28rpx;
					color: #666666;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 1;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}

			.right {
				width: 88rpx;
				height: 44rpx;
				background: linear-gradient(141deg, #F0A367 0%, #EF4630 100%);
				border-radius: 30rpx;
				font-size: 24rpx;
				color: #FFFFFF;
				text-align: center;
				line-height: 44rpx;
			}
		}
	}

	.share_icon {
		width: 80rpx;
		height: 96rpx;
	}


	.member_bg {
		width: 520rpx;
		height: 580rpx;
		background: linear-gradient(180deg, #F5E3CB 0%, #FDFDFD 100%);
		border-radius: 40rpx;
		display: flex;
		flex-direction: column;
		align-items: center;


		.title {
			font-weight: 800;
			font-size: 40rpx;
			line-height: 47rpx;
			background: linear-gradient(to right, #666666 0%, #1A1A1A 100%);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			margin: 48rpx 0 76rpx;
		}

		.diamonds {
			width: 320rpx;
			height: 200rpx;
		}

		.btns {
			display: flex;
			align-items: center;
			gap: 24rpx;
			margin-top: 80rpx;

			.btn {
				width: 200rpx;
				height: 80rpx;
				background: #595959;
				border-radius: 12rpx;
				opacity: 0.9;
				font-size: 32rpx;
				color: #FFFFFF;
				line-height: 80rpx;
				text-align: center;
			}

			.btn1 {
				background: linear-gradient(91deg, #4D4D4D 0%, #1A1A1A 100%);
			}
		}
	}
</style>